<!--编辑栏目-->
<div class="dialog_content">
	<form id="info_form" action="{:url('editDo')}" method="post">
	<table width="100%" class="table_form">
		<tr>
			<th>电话 :</th>
			<td>{$info.mobile}</td>
		</tr>
        {notempty name='info.area'}
        <tr>
            <th>意向区域 :</th>
            <td>{$info.area}</td>
        </tr>
        {/notempty}
        {notempty name='info.mianji'}
        <tr>
            <th>意向面积 :</th>
            <td>{$info.mianji}</td>
        </tr>
        {/notempty}
        {notempty name='info.price'}
        <tr>
            <th>意向价格 :</th>
            <td>{$info.price}</td>
        </tr>
        {/notempty}
        {notempty name='info.shoufu'}
        <tr>
            <th>首付金额 :</th>
            <td>{$info.shoufu}</td>
        </tr>
        {/notempty}
        {notempty name='info.huxing'}
        <tr>
            <th>户型 :</th>
            <td>{$info.huxing}</td>
        </tr>
        {/notempty}
        {notempty name='info.content'}
        <tr>
            <th>其它需求 :</th>
            <td>{$info.content}</td>
        </tr>
        {/notempty}
        <tr><th>联系 :</th><td colspan="3">
            <label><input type="radio" name="status" value="1" {if condition="$info['status'] eq 1"}checked{/if} /> 已联系</label> &nbsp;
            <label><input type="radio" name="status" value="0" {if condition="$info['status'] eq 0"}checked{/if} /> 未联系</label>
        </td></tr>
        <tr><th>管理员备注 :</th><td colspan="3"><textarea name="memo" style="width:300px;height:80px;">{$info.memo}</textarea></td></tr>
	</table>
	<input type="hidden" name="id" value="{$info.id}" />
	</form>
</div>
<script>
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.yingloujie.tip({content:result.msg});
                setTimeout(function(){window.location.reload();},1000);
            } else {
                $.yingloujie.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>